package com.shixun.service;

import com.shixun.pojo.TbBus;
import com.shixun.pojo.TbBusProblem;
import com.shixun.pojo.TbRepairRecord;

import java.util.List;

public interface BusManageService {
    List<TbBus> selectBusInfo(int busId,String busName,int busStatus,String city,int limit,int offset);

    Integer insertBusInfo(String busName,int busStatus,int repairDriverId,String city);

    boolean modifyBusInfo(String newBusName,int newBusStatus,int newRepairDriver,String newCity);

    List<TbBusProblem> selectBrokenBus(int busId);

    boolean setStatus1(int busId);

    boolean setStatus3(int busId);

    boolean setStatus4(int busId);

    List<TbRepairRecord> selectRepairBus(int busId);
}
